import { uploadFile } from "@/api/public.js";
export const upFileHttpRequest = async (file) => {
    let formData = new FormData();
    formData.append("file", file);
    try {
      const { data } = await uploadFile(formData, "f");
      return data;
    } catch (e) {
      console.error(e);
      options.onError(e);
    }
  };